set ns=SG.Ling.AutoTranslator
set outdir=%~dp0

pushd %outdir%
pushd %outdir%%ns%\bin\Debug
ilmerge /v4  /lib:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client" /out:"%outdir%AutoTranslator.exe" /wildcards %ns%.exe *.dll
popd
popd